package com.zyht.website.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zyht.common.BaseDao;
import com.zyht.common.BaseServiceImpl;
import com.zyht.website.dao.IndexBannerDao;
import com.zyht.website.dao.IndexBannerMapper;
import com.zyht.website.entity.IndexBanner;
import com.zyht.website.entity.IndexBannerExample;
import com.zyht.website.service.BannerService;

@Service("indexBannerService")
public class BannerServiceImpl extends BaseServiceImpl<IndexBanner, IndexBannerExample> implements
		BannerService {

	@Resource
	private IndexBannerMapper indexBannerMapper;
	
	@Resource
	private IndexBannerDao indexBannerDao;

	
	@Override
	public BaseDao<IndexBanner, IndexBannerExample> dao(){

		return indexBannerMapper;
	}

	@Override
	public List<IndexBanner> list(Map<String, Object> params){

		return this.indexBannerDao.selectItems(params);
	}

}
